package com.xzk.service.impl;

import com.xzk.bean.Admin;
import com.xzk.dao.AdminDao;
import com.xzk.service.AdminService;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @ClassName AdminServiceImpl
 * @Description 管理员Service层
 * @Author 0715-YuHao
 * @Date 2020/9/28 17:12
 * @Version 1.0
 */
@Service("adminService")
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminDao dao;

    @Override
    public void updateLoginTime(Map map) {
        dao.updateLoginTime(map);
    }

    @Override
    public boolean login(Map map) {
        return dao.login(map) > 0;
    }
}
